Skip to content

Conversation

@rubenhoenle
Copy link
Member

See docs of the OpenAPI generator: https://openapi-generator.tech/docs/generators/java/

Relevant part of the docs:

enumUnknownDefaultCase: If the server adds new enum cases, that are unknown by an old spec/client, the client will fail to parse the network response.With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the server sends an enum case that is not known by the client/spec, they can safely fallback to this case.

  • false: No changes to the enum's are made, this is the default option.
  • true: With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the enum case sent by the server is not known by the client/spec, can safely be decoded to this case.

@rubenhoenle rubenhoenle merged commit 7f111a5 into main Jul 31, 2025
35 of 54 checks passed
@rubenhoenle rubenhoenle deleted the chore/java-sdk-enum-unknown-default-case branch July 31, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants